﻿using System;
using DataAccess.Services.Interfaces;
using DataControl;
using NHibernate;

namespace DataAccess.Services.Gateways
{
	internal class DocumentTypeGateway : GatewayBase<DocumentType>, IDocumentTypeGateway
	{
		public DocumentTypeGateway(ISession session) : base(session)
		{
		}

		public int GetDocumentTypeIdByName(string docTypeName)
		{
			return DataControl.GetDocumentTypeIdByName(docTypeName);
		}
	}
}
